NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation. |
![]() ![]() |
Q: We're running MPW 3.3.1 with C++ on a Centris 660AV running System 7.5. All the MPW files are from a clean ETO #15. According to Stroustrup (the C++ programming language) and the K&R C, the precedence of "<" is greater than the precedence of "!=", and all other references that we have agree with this. Since the two tests below return different results, MPW does not appear to be adhering to this rule. Both tests should succeed, but on MPW C++, test 1 fails. Under MPW 'C', this code works as it is supposed to.
A: This is a bug, but since MPW is switching over to Mr C (Symantec C++ for MPW) as the main compiler, and this does not occur with SCpp, it is not likely to be fixed (maintenance on CFront has effectively stopped). You have two choices: either explicitly specify precedence by using (), or switch to SCpp. |
Developer Documentation | Technical Notes | Development Kits | Sample Code |